import request from "@/utils/request";

// 获取用户图片列表
export const getUserImagesService = (params) => {
  return request.get("/media/listUserMedia", {
    params: {
      current: params.current,
      size: params.size,
    },
  });
};

// 用户点赞
export const likePictureService = (data) => {
  return request({
    url: "/user-like/like",
    method: "post",
    data,
  });
};

// 用户取消点赞
export const unlikePictureService = (data) => {
  return request({
    url: "/user-like/Unlike",
    method: "post",
    data,
  });
};
